﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UEmpDetails.ascx.cs" Inherits="PayRoller.Include.UEmpDetails" %>
<% string imagePage = this.Page.ResolveClientUrl("~/images/mhtDE.jpg"); %>
<table width="99%"  border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td height="26">
		<table width="100%"  border="0" cellspacing="1" cellpadding="1">
      <tr>
        <td width="20" height="24" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a id="aEmployeeList" runat="server" href="EmpList.aspx">new employee search</a></td>
        <td width="20" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a href="#">employee details</a></td>
        <td width="20" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a href="EmpUpt.aspx?Sid=<%=Sid%>">edit employee details</a></td>
        <td width="20" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a href="EmpPay.aspx?EmpSid=<%=Sid%>">edit payment details</a></td>
      </tr>
      <tr>
        <td width="20" height="24" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a href="EmpPayHistory.aspx?Sid=<%=Sid%>">payment history</a></td>
        <td width="20" align="center"><img 
            src="<%= imagePage %>" /></td>
        <td><a href="EmpUptHistory.aspx?Sid=<%=Sid%>">update history</a></td>
        <td width="20" align="center">&nbsp;</td>
        <td></td>
        <td width="20" align="center">&nbsp;</td>
        <td></td>
      </tr>
    </table>
		</td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="35%" height="22">Our Ref:</td>
            <td><%=Sid%></td>
          </tr>
          <tr>
            <td height="22">Employee Name:</td>
            <td><%=EmpName%></td>
          </tr>
          <tr>
            <td height="22">Employee ID:</td>
            <td><%=OrgEmpSid%></td>
          </tr>
          <tr>
            <td height="22">Tax File Number:</td>
            <td><%=TaxFileNumber%></td>
          </tr>
          <tr>
            <td height="22">Pay Frequency:</td>
            <td><%=PayFrequency%></td>
          </tr>
          <tr>
            <td height="22">Next Payday:</td>
            <td><%=NextPayday%></td>
          </tr>
          <tr>
            <td height="22">Net Payment:</td>
            <td><%=sNetPayment%></td>
          </tr>
          <tr>
            <td height="22">Address:</td>
            <td><%=Address1%></td>
          </tr>
          <tr>
            <td style="height: 22px">&nbsp;</td>
            <td style="height: 22px"><%=Address2%></td>
          </tr>
          <tr>
            <td height="22">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="22" colspan="2"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td><strong>Net Pay Distribution:</strong></td>
                </tr>
                <tr>
                  <td><table width="100%"  border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
                      <tr>
                        <td height="22" bgcolor="#CCCCCC"><strong>BSB</strong></td>
                        <td bgcolor="#CCCCCC"><strong>A/C</strong></td>
                        <td bgcolor="#CCCCCC"><strong>Bank Name</strong></td>
                        <td bgcolor="#CCCCCC"><strong>Reference</strong></td>
                        <td bgcolor="#CCCCCC"><strong>Amount</strong></td>
                        <td bgcolor="#CCCCCC"><strong>PaymentDate</strong></td>
                      </tr>
                      <%
                for (int i = 0; i < dtBankPayment.Rows.Count; i++)
                {
                    string BankName = dtBankPayment.Rows[i]["BankName"].ToString();
                    string AccountNum = dtBankPayment.Rows[i]["AccountNum"].ToString();
                    string Bsb = dtBankPayment.Rows[i]["Bsb"].ToString();
                    string PayReference = dtBankPayment.Rows[i]["PayReference"].ToString();
                    string PaymentAmount = dtBankPayment.Rows[i]["PaymentAmount"].ToString();
                    string PaymentDate = Convert.ToDateTime( dtBankPayment.Rows[i]["PaymentDate"]).ToString("dd/MM/yyyy");
            %>
                      <tr bgcolor="#FFFFFF">
                        <td height="22"><%=BankName%></td>
                        <td><%=AccountNum%></td>
                        <td><%=Bsb%></td>
                        <td><%=PayReference%></td>
                        <td><%=PaymentAmount%></td>
                        <td><%=PaymentDate%></td>
                      </tr>
                      <%}%>
                  </table></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="22" colspan="2"><div align="center"> <a href="#" onClick="history.go(-1);">Return</a> </div></td>
          </tr>
          <tr>
            <td height="22" colspan="2">
              <asp:Label ID="lblTip" runat="server"></asp:Label>
            </td>
          </tr>
        </table></td>
      </tr>
</table>